package annotation.demo05.adapter;

/*
    类型转换器
 */
public class TypeChange {
    public static Object typeChange(String origin,Class aClass){
        TypeAdapter typeAdapter = null;
        if(aClass == int.class){
            typeAdapter = new IntegerTypeAdapter();
            return typeAdapter.typeChange(origin);
        }
        return origin;
    }
}
